projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efccf87
)
Choose a different initial color when adding custom colors
author
Matthias Clasen
<mclasen@redhat.com>
Tue, 31 Jan 2012 04:40:13 +0000
(23:40 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Tue, 14 Feb 2012 21:36:50 +0000
(16:36 -0500)
Going for pure red 'hides' the hairline at the edge of the
plane. This color makes it nicely visible.
gtk/gtkcolorchooserwidget.c
patch
|
blob
|
history
diff --git
a/gtk/gtkcolorchooserwidget.c
b/gtk/gtkcolorchooserwidget.c
index 8abf5e6893b262514c6794df24dbc604ddd875f1..a4ad5e75edde7c59e4994240d9b08b7ea6375830 100644
(file)
--- a/
gtk/gtkcolorchooserwidget.c
+++ b/
gtk/gtkcolorchooserwidget.c
@@
-84,9
+84,9
@@
button_activate (GtkColorSwatch *swatch,
{
GdkRGBA color;
- color.red =
1.0
;
- color.green = 0;
- color.blue = 0;
+ color.red =
0.75
;
+ color.green = 0
.25
;
+ color.blue = 0
.25
;
color.alpha = 1.0;
gtk_color_chooser_set_color (GTK_COLOR_CHOOSER (cc->priv->editor), &color);